#!/bin/sh

mkdir -p /usr/local/etc/squid
mkdir -p /var/squid/acl
mkdir -p /var/squid/log
if [ ! -L /usr/local/etc/squid ]; then
  rm -fr /var/etc/squid
  mkdir -p /var/etc/squid
  mv /usr/local/etc/squid /var/etc/
  ln -s /var/etc/squid /usr/local/etc/
fi
mkdir -p /var/squid/cache

chown -R proxy /var/etc/squid
chgrp -R proxy /var/etc/squid
chown -R proxy /var/squid
chgrp -R proxy /var/squid

